﻿<cts-title id="pnTitle" text="{{strings.Title}}"></cts-title>
<cts-toolbar id="pnToolbar">
    <cts-toolbar-item id="lnkUpdateAll" onclick="updateAll()" class="left-1" src="/res/adm/img/icons/save.png" data-original-title="{{strings.UpdateAll}}" ui-jq="tooltip" ></cts-toolbar-item>
</cts-toolbar>
<cts-grid-Pane id="pnResult" class="left-0 settings-system-tblResult">
    <table dt-options="tblResult.Options" datatable="ng">
        <thead>
        <tr>
            <td width="30px"></td>
            <td width="300" text="{{strings.ColParamName}}" cts-grid-header="true"></td>
            <td width="100" text="{{strings.ColParamValue}}" cts-grid-header="true"></td>
            <td width="500" text="{{strings.ColNotes}}" cts-grid-header="true"></td>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="obj in tblResult.ListData">
            <td><input type="checkbox" ng-model="obj.HasChanged"/></td>
            <td>{{obj.ParamName}}</td>
            <td class="editable">
                <span ng-if="obj.ParamType=='String'">
                    <cts-text model="obj.ParamValue" tabindex="10" onchange="tblResultChange(data, obj)"></cts-text>
                </span>
                <span ng-if="obj.ParamType=='Number'">
                    <cts-number model="obj.ParamValue" tabindex="10" onchange="tblResultChange(data, obj)"></cts-number>
                </span>
            </td>
            <td>{{obj.Notes}}</td>
        </tr>
        </tbody>
    </table>
</cts-grid-Pane>
<cts-alert model="alert"></cts-alert>